package com.ai.service;

import org.springframework.ai.document.Document;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author mis_w
 * @description: 文本分块与向量化存储服务
 */
public interface VectorStoreService {

    int simpleVectorStore();

    Boolean saveDocumentToVectorStore(MultipartFile file) throws IOException;

    Boolean customerSaveDocumentToVectorStore(MultipartFile file);


    List<Document> similaritySearch(String query, int topK);

}
